// 文件 api
import request from '@/utils/request'

// 根据文件 ID 获取文件信息
export function getFileDetail(ids) {
  return request({
    url: '/ruoyi-system/getFiles?fileIds=' + ids,
    method: 'get',
  })
}

// 预览附件列表
export function onSiteInspectionPreviewList(data) {
  return request({
    url: '/ruoyi-system/siteinspectionrecord/previewList',
    method: 'get',
    params: data,
  })
}

// 预览附件
export function onSiteInspectionPreview(data) {
  return request({
    url: '/ruoyi-system/siteinspectionrecord/preview',
    method: 'get',
    params: data,
  })
}

// 新增页预览
export function onSiteInspectionPreviewPdf(data) {
  return request({
    url: '/ruoyi-system/siteinspectionrecord/photoPreview',
    method: 'post',
    data,
  })
}
